package com.study.observermode.config;

import com.study.observermode.publisher.MyPublisher;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName: PublisherConfig
 * @Description:
 * @Details:
 * @Author: 郑港旭
 * @Create: 2021-11-16 17:01
 **/
@Configuration
public class PublisherConfig {
    @Bean(name = "myPublisher")
    public MyPublisher myPublisher(){
        return new MyPublisher();
    }
}
